/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package horizon.gui.component;

import horizon.graphics.RenderingContext;
import horizon.util.Vector2;
import java.awt.event.MouseEvent;

/**
 *
 * @author J_Laptop
 */
public class GuiImageLabel extends GuiComponent {

    String imgName;

    public GuiImageLabel(String name, String imgName, Vector2 size, Vector2 position) {
        super(name, size, position);
        this.imgName = imgName;
    }

    @Override
    public void update(long elapsedTime) {
    }

    @Override
    public void render(RenderingContext r) {
        r.drawImage(imgName, position, 0, 1);
    }

    @Override
    public void onActivate(MouseEvent e) {
       
    }

    
}
